// pages/branch/branch.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
        scoreList: [
            {
                name: '目前总分',
                socre: '20'
            },
            {
                name: '思想先进',
                socre: '20'
            },
            {
                name: '专业过硬',
                socre: '20'
            },
            {
                name: '乐于奉献',
                socre: '20'
            },
           
        ],

        active: 0,
        // 导航菜单数据
        navList: [
            {
                name: '领取积分',
                url: '/pages/stulife/stulife',
                icon: '/static/images/icon/gifts.png'
            },
            {
                name: '积分规则',
                url: '/pages/stulife/stulife',
                icon: '/static/images/icon/bianmaguize.png'
            },
            {
                name: '更换肖像',
                url: '/pages/stulife/stulife',
                icon: '/static/images/icon/yonghu.png'
            },
            {
                name: '积分奖励',
                url: '/pages/stulife/stulife',
                icon: '/static/images/icon/jiangli.png'
            },
            {
                name: '分享肖像',
                url: '/pages/stulife/stulife',
                icon: '/static/images/icon/fenxiang-1.png'
            },

        ]
    },
    //启用分享按钮
    handlerShare() {
        wx.showShareMenu({
            withShareTicket: true,
            success: function () {
                console.log("成功分享")
            },
            fail: function () {
                console.log("分享取消")
            },
            complete: function () {
                console.log("成功完成")
            }
        })
    },
    myswitchTab() {

        wx.switchTab({
            url: '/pages/index/index'
        })
    },
    myreLaunch() {
        console.log('myreLaunch')
    },
    myredirectTo() {
        console.log('myredirectTo')
    },
    mynavigateTo() {
        console.log('mynavigateTo')
        wx.navigateTo({
            url: '/pages/test/test'
        })
    },
    mynavigateBack() {
        console.log('mynavigateBack')
    },


    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {

    },

    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function () {

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {

    }

})